package com.springBootStudy.spring_aoc.rentDemo;

/**
 * @ program: elasticSearch_springBoot_study
 * @ description:
 * @ author: Mr.Zhongsf
 * @ create: 2021-03-10 13:37
 **/
public class Client {
    public static void main(String[] args) {
        //房东角色
        HostPeople hostPeople = new HostPeople();
        //代理,中介帮房东租房子,而且代理一般会有一些附属的操作
        Proxy proxy = new Proxy(hostPeople);
        proxy.seeHouse();
        //不用面向房东,而是中介
        proxy.rent();

    }

}
